/*
 * ZoombieView.h
 *
 *  Created on: 31/05/2014
 *      Author: javier
 */

#ifndef ZOOMBIEVIEW_H_
#define ZOOMBIEVIEW_H_

#include "Drawable.h"
#include "Utils.h"

#define SPRITES_TAM 20 // 5 sprites X 4 direcciones

enum ZoombieColor{
	Z_RED, Z_GREEN, Z_BLUE
};

class ZoombieView: public Drawable {
public:
	ZoombieView(SDLWindow* window, SDL_Texture* texture, Positionable* object, ZoombieColor color);
	void render(Camera& cam);
	void update();
	virtual ~ZoombieView();
private:
	SDL_Rect clips[SPRITES_TAM];
	int useClip;
	SDLWindow* window;
	SDL_Texture* texture;
	int base;
	Positionable* object;
	Cycler cycler;
	std::pair<double, double> position, previousPosition;
	Properties properties;
};

#endif /* ZOOMBIEVIEW_H_ */
